/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package aviso.entity;

import aviso.entity.AdvertQuery;
import java.util.List;

/**
 *
 * @author avgusti
 */
public class ListWraper {

 public static final int HIGH = 0;
    public static final int NORMAL = 1;
    public static final int LOW = 2;
    public static final String Icon_Prefix[] = {"red", "green", "black"};
    public static String ext=".png";
   
    
private int number, priority;

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    public static List<ListWraper> enumerate(List<ListWraper> list, int start) {
        int i=start; 
        for(ListWraper l:list )
        {
            l.setNumber(i);
            i++;
        }
        return list;
    }
    
    public static String printIconName(ListWraper w)
    {
        String tmp= Icon_Prefix[w.priority]+"/"+Icon_Prefix[w.priority]+w.number+ext; 
        return tmp;
    }
}
